home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / ROMEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  7.0 KB  |  181 lines  |  [TEXT/MPS ]

  1. ; Version: 3.16
  2. ; Created: Friday, October 20, 1989 at 9:44:53 PM
  3. ;
  4. ; File: ROMEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1986-1991
  8. ; All Rights Reserved
  9. ;
  10. ; Description : This file contains the CONST definitions used by the
  11. ; Slot Manager and Declaration ROM's
  12. ;
  13. ;------------------------------------------------------------------------
  14.  
  15.     IF &TYPE('__IncludingROMEqu__') = 'UNDEFINED' THEN
  16. __IncludingROMEqu__    SET    1
  17.  
  18. ;*********************************************************************
  19. ; Constants
  20. ;*********************************************************************
  21.  
  22. ;=====================================================================
  23. ;Misc.
  24. ;=====================================================================
  25. defaultTO         EQU         100
  26. ;=====================================================================
  27. ;Format-Header
  28. ;=====================================================================
  29. appleFormat       EQU         1                         ;Format of Declaration Data (IEEE will assign real value)
  30. romRevision       EQU         1                         ;First ROM revision.
  31. romRevRange       EQU         9                         ;Revision of Declaration Data Format [1..9]
  32. testPattern       EQU         1519594439                ;FHeader long word test pattern
  33. ;=====================================================================
  34. ;sExec constants
  35. ;=====================================================================
  36. sExec2            EQU         2                         ;Revision of header {For sExec}.
  37. ;=====================================================================
  38. ;sExec constants
  39. ;=====================================================================
  40. sCPU68000         EQU         1                         ;CPU type = 68000
  41. sCPU68020         EQU         2                         ;CPU type = 68020
  42. sCPU68030         EQU         3                         ;CPU type = 68030            <1.3>
  43. sCPU68040        EQU            4                        ;CPU type = 68040            <1.4>
  44.  
  45. ;=====================================================================
  46. ;sDRVR directory constants
  47. ;=====================================================================
  48. sMacOS68000       EQU         1                         ;Mac OS, CPU type = 68000
  49. sMacOS68020       EQU         2                         ;Mac OS, CPU type = 68020
  50. sMacOS68030        EQU            3                        ;Mac OS, CPU type = 68030    <1.3>
  51. sMacOS68040        EQU            4                        ;Mac OS, CPU type = 68040    <1.4>
  52.  
  53.  
  54. ;=====================================================================
  55. ;sResource types
  56. ;=====================================================================
  57.  
  58. ;<Category>
  59. catBoard          EQU         $0001                    ;        <1.3>
  60. catTest           EQU         $0002                    ;        <1.3>
  61. catDisplay        EQU         $0003                    ;        <1.3>
  62. catNetwork        EQU         $0004                    ;        <1.3>
  63. CatCPU            EQU            $000A                    ;        <1.3>
  64.  
  65. ;<Type>
  66. typBoard          EQU         $0000                    ;        <1.3>                    
  67. typApple          EQU         $0001                    ;        <1.3>
  68. typVideo          EQU         $0001                    ;        <1.3>
  69. typEtherNet       EQU         $0001                    ;        <1.3>
  70.  
  71. Typ68000        EQU            $0002                    ;        <1.3>    
  72. Typ68020        EQU            $0003                    ;        <1.3>
  73. Typ68030        EQU            $0004                    ;        <1.3>
  74. Typ68040        EQU            $0005                    ;        <1.4>
  75.  
  76. ;Driver Interface : <id.SW>
  77. DrSwMacCPU        EQU            0                        ;         <1.3>
  78. drSwApple         EQU         1                        ;         <1.3>
  79.  
  80. ;Driver Interface : <id.SW><id.WH>
  81. drHwTFB           EQU         1
  82. drHw3Com          EQU         1
  83. drHwBSC           EQU         3
  84.  
  85.  
  86. ;=====================================================================
  87. ;Declaration ROM Id's
  88. ;=====================================================================
  89. ;---------------------------------------------------------------------
  90. ; Misc
  91. ;---------------------------------------------------------------------
  92. endOfList         EQU         255                       ;End of list
  93.  
  94.  
  95. ;---------------------------------------------------------------------
  96. ; sResource List. Category: All
  97. ;---------------------------------------------------------------------
  98. ;The following Id's are common to all sResources.
  99. sRsrcType         EQU         1                         ;Type of sResource
  100. sRsrcName         EQU         2                         ;Name of sResource
  101. sRsrcIcon         EQU         3                         ;Icon
  102. sRsrcDrvrDir      EQU         4                         ;Driver directory
  103. sRsrcLoadRec      EQU         5                         ;Load record
  104. sRsrcBootRec      EQU         6                         ;sBoot record
  105. sRsrcFlags        EQU         7                         ;sResource Flags
  106. sRsrcHWDevId      EQU         8                         ;Hardware Device Id
  107. minorBaseOS       EQU         10                        ;Offset to base of sResource in minor space.
  108. minorLength       EQU         11
  109. majorBaseOS       EQU         12                        ;Offset to base of sResource in Major space
  110. majorLength       EQU         13
  111. sRsrcTest         EQU         14                        ; sBlock diagnostic code
  112. sRsrcCIcon        EQU         15                        ; CQD color icon
  113. sRsrcIcl8        EQU            16                        ; 'icl8' 8-bit color icon data
  114. sRsrcIcl4        EQU            17                        ; 'icl4' 4-bit color icon data
  115.  
  116. sGammaDir        EQU            64                        ; spID for gamma directory
  117. sRsrcVidNames    EQU            65                        ; spID for video name directory
  118.  
  119. ;---------------------------------------------------------------------
  120. ; sResource List. Category: Board
  121. ;---------------------------------------------------------------------
  122. ;The following Id's are common to all Board sResources.
  123. boardId           EQU         32                        ;Board Id
  124. pRAMInitData      EQU         33                        ;sPRAM init data
  125. primaryInit       EQU         34                        ;Primary init record
  126. timeOutConst      EQU         35                        ;Time Out constant. 
  127. vendorInfo        EQU         36                        ;Vendor information List {See Vendor List, below}
  128. boardFlags        EQU         37                        ;Board Flags
  129. secondaryInit    EQU            38                        ;Secondary init record                <1.1>    
  130.  
  131. ;---------------------------------------------------------------------
  132. ; sResource List. Category: Board
  133. ;---------------------------------------------------------------------
  134. ;The following Id's are associated with all CPU sResources.
  135. MajRAMSp          EQU         129                       ;ID of Major RAM space.
  136. MinROMSp          EQU         130                       ;ID of Minor ROM space.
  137.  
  138.  
  139. ;---------------------------------------------------------------------
  140. ;Vendor List
  141. ;---------------------------------------------------------------------
  142. ;The following Id's are associated with the VendorInfo id
  143. vendorId          EQU         1                         ;Vendor Id
  144. serialNum         EQU         2                         ;Serial number
  145. revLevel          EQU         3                         ;Revision level
  146. partNum           EQU         4                         ;Part number
  147. Date              EQU         5                         ;ID of date field in vendor info list.
  148.  
  149.  
  150. ;---------------------------------------------------------------------
  151. ; sResource List. Category_Type: Test_One
  152. ;---------------------------------------------------------------------
  153. ;The following Id's are common to all Test_One_x sResources.
  154. testByte          EQU         32                        ;Test byte.
  155. testWord          EQU         33                        ;Test Word.
  156. testLong          EQU         34                        ;Test Long.
  157. testString        EQU         35                        ;Test String.
  158.  
  159.  
  160.  
  161. ;*************************************************************
  162. ;Macros
  163. ;*************************************************************
  164. ;=============================================================
  165. ; Offset List Entry
  166. ;=============================================================
  167.                   MACRO
  168.                   OSLstEntry  &Id,&Offset
  169.                   DC.L        (&Id<<24)++((&Offset-*)**$00FFFFFF)
  170.                   ENDM
  171.  
  172.  
  173. ;=============================================================
  174. ; Data List Entry
  175. ;=============================================================
  176.                   MACRO
  177.                   DatLstEntry &Id,&Data
  178.                   DC.L        (&Id<<24)+&Data
  179.                   ENDM
  180.  
  181.     ENDIF    ; ...already included